package com.liy.jiagou.feign;

import com.liy.jiagou.common.api.entity.ResultVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 *
 *  Product 资源服务的 FeignClient
 *
 *  未使用继承接口的形式
 *
 **/

@FeignClient(name = "product-server")
public interface ProductFeignClient {

    @GetMapping("/query/product")
    ResultVo getProduct(@RequestParam("productId") String  productId);


}
